package nju.mscs.data.object;

import java.io.Serializable;

public class VipConsumerUpdata implements Serializable{
	public static final int ADD = 0;
	public static final int DELETE = 1;
	public static final int MODIFY = 2;
	public static final int CHANGE=3;
	private int type;
	private String id;
	private String name;
	private boolean sex;
	private int sumPointChage;
	private int restPointChange;
	private int telephone;
	private Date birth;

	protected VipConsumerUpdata(int type,String id){
		this.setType(type);
		this.setId(id);
	}
	protected VipConsumerUpdata(int type,String id2,String name, boolean sex,int tel,Date bth){
		this.setType(type);
		this.setId(id2);
		this.setName(name);
		this.setSex(sex);
		this.setTelephone(tel);
		this.setBirth(bth);
	}
	
	protected VipConsumerUpdata(int type,String id,int sumPointChage,int restPointChange){
		this.setType(type);
		this.setId(id);
		this.setSumPointChage(sumPointChage);
		this.setRestPointChange(restPointChange);
	}
	public int getSumPointChage() {
		return sumPointChage;
	}
	public void setSumPointChage(int sumPointChage) {
		this.sumPointChage = sumPointChage;
	}
	public void setRestPointChange(int restPointChange) {
		this.restPointChange = restPointChange;
	}
	public int getRestPointChange() {
		return restPointChange;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getId() {
		return id;
	}
	public void setId(String id2) {
		this.id = id2;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	
	public int getTelephone() {
		return telephone;
	}
	public void setTelephone(int telephone) {
		this.telephone = telephone;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
}